//
//  ZyqScrollerView.m
//  FMMusic
//
//  Created by zyq on 16/1/11.
//  Copyright © 2016年 zyq. All rights reserved.
//

#import "ZyqScrollerView.h"

@interface ZyqScrollerView () <UIGestureRecognizerDelegate>

@end
@implementation ZyqScrollerView


- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
    if ([gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]]) {
        UIPanGestureRecognizer * pan = (UIPanGestureRecognizer *)gestureRecognizer;
        if ([pan translationInView:self].x>0.0f&&self.contentOffset.x == 0.0f) {
            return NO;
        }
    }
    return [super gestureRecognizerShouldBegin:gestureRecognizer];
}
@end
